package com.zhenquan.doubanread.dao;

import com.zhenquan.doubanread.pojo.HaveRead;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface HaveReadMapper {


    int insert(HaveRead record);

    int insertSelective(HaveRead record);

    HaveRead selectByIdAndUserId(@Param("id") Integer id, @Param("userId") Integer userId);

    int deleteByIdAndUserId(@Param("id") Integer id, @Param("userId") Integer userId);

    List<HaveRead> selectHaveReadByUserId(@Param("userId") Integer userId);

    List<HaveRead> selectHaveReadByNotMySelf(@Param("userId") Integer userId);
}